
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>融合 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="5.7.html" />
    
    
    <link rel="prev" href="5.5.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" >
            
                <a target="_blank" href="https://github.com/xfl03/CoreModTutor">
            
                    
                    源代码仓库（求star）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    目录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="0.html">
            
                <a href="0.html">
            
                    
                    0 绪论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    1 简介
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="1.1.html">
            
                <a href="1.1.html">
            
                    
                    CoreMod
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="1.2.html">
            
                <a href="1.2.html">
            
                    
                    Java虚拟机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="1.3.html">
            
                <a href="1.3.html">
            
                    
                    Minecraft混淆方式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    2 Java虚拟机
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" >
            
                <span>
            
                    
                    ClassLoader类加载器
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" >
            
                <span>
            
                    
                    ByteCode字节码
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" >
            
                <span>
            
                    
                    ASM
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    3 原版 CoreMod
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="3.1.html">
            
                <a href="3.1.html">
            
                    
                    直接修改class文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="3.2.html">
            
                <a href="3.2.html">
            
                    
                    JavaAgent
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="3.3.html">
            
                <a href="3.3.html">
            
                    
                    LaunchWrapper
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="3.4.html">
            
                <a href="3.4.html">
            
                    
                    ModLauncher
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    4 FML CoreMod
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="4.1.html">
            
                <a href="4.1.html">
            
                    
                    1.3.2-1.5.2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="4.2.html">
            
                <a href="4.2.html">
            
                    
                    1.6.1-1.12.2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="4.3.html">
            
                <a href="4.3.html">
            
                    
                    1.13.2-1.14.4
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="5.html">
            
                <a href="5.html">
            
                    
                    5 Mixin
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="5.1.html">
            
                <a href="5.1.html">
            
                    
                    配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="5.2.html">
            
                <a href="5.2.html">
            
                    
                    引导
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="5.3.html">
            
                <a href="5.3.html">
            
                    
                    注入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="5.4.html">
            
                <a href="5.4.html">
            
                    
                    修改
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="5.5.html">
            
                <a href="5.5.html">
            
                    
                    定位
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.8.6" data-path="5.6.html">
            
                <a href="5.6.html">
            
                    
                    融合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.7" data-path="5.7.html">
            
                <a href="5.7.html">
            
                    
                    扩展
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.8" data-path="5.8.html">
            
                <a href="5.8.html">
            
                    
                    调试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" >
            
                <span>
            
                    
                    附录
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="附录A.html">
            
                <a href="附录A.html">
            
                    
                    附录A 相关工具下载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="附录B.html">
            
                <a href="附录B.html">
            
                    
                    附录B 常见Java字节码指令表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="附录C.html">
            
                <a href="附录C.html">
            
                    
                    附录C 参考资料
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >融合</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x878D;&#x5408;">&#x878D;&#x5408;</h1>
<p><code>mix in</code>&#x672C;&#x5C31;&#x6709;<code>&#x878D;&#x5408;</code>&#x4E4B;&#x610F;&#x3002;</p>
<h2 id="&#x6CE8;&#x5165;&#x7C7B;&#x4E2D;&#x7684;this">&#x6CE8;&#x5165;&#x7C7B;&#x4E2D;&#x7684;<code>this</code></h2>
<p>&#x73B0;&#x5728;&#x6211;&#x4EEC;&#x6765;&#x8BBE;&#x60F3;&#x4E00;&#x4E0B;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#xFF1A;&#x4F60;&#x9700;&#x8981;&#x5728;&#x6CE8;&#x5165;&#x7C7B;&#x4E2D;&#x8BBF;&#x95EE;&#x4E00;&#x4E2A;&#x65B9;&#x6CD5;&#xFF0C;&#x4F46;&#x662F;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x7684;&#x5176;&#x4E2D;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#x7684;&#x7C7B;&#x578B;&#x6070;&#x597D;&#x662F;&#x76EE;&#x6807;&#x7C7B;&#x7684;&#x7C7B;&#x578B;&#x3002;&#x8FD9;&#x6837;&#x63CF;&#x8FF0;&#x53EF;&#x80FD;&#x6709;&#x4E9B;&#x62BD;&#x8C61;&#xFF0C;&#x6211;&#x4EEC;&#x5C31;&#x62FF;<a href="https://github.com/HyperiumClient/Hyperium" target="_blank">Hyperium</a>&#x4E3E;&#x4E2A;&#x4F8B;&#x5B50;&#x3002;<br>&#x5728;Hyperium&#x4E2D;&#x6709;&#x4E00;&#x4E2A;<a href="https://github.com/HyperiumClient/Hyperium/blob/ab4bf494f84107e05da74adbc114050acb53dab0/src/main/java/cc/hyperium/mixinsimp/renderer/HyperiumLayerCape.java" target="_blank"><code>HyperiumLayerCape</code></a>&#x7C7B;&#xFF0C;&#x5B83;&#x7684;&#x6784;&#x9020;&#x65B9;&#x6CD5;&#x9700;&#x8981;&#x4F20;&#x5165;&#x4E00;&#x4E2A;<code>LayerCape</code>&#x7C7B;&#x7684;&#x5B9E;&#x4F8B;&#xFF0C;&#x8FD9;&#x6837;&#x5C31;&#x9700;&#x8981;&#x5728;<code>LayerCape</code>&#x521D;&#x59CB;&#x5316;&#x7684;&#x65F6;&#x5019;&#x6CE8;&#x5165;&#x4E00;&#x6BB5;&#x4EE3;&#x7801;&#x7528;&#x4E8E;&#x521D;&#x59CB;&#x5316;<code>HyperiumLayerCape</code>&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-keyword">package</span> cc.hyperium.mixins.renderer;

<span class="hljs-keyword">import</span> cc.hyperium.mixinsimp.renderer.HyperiumLayerCape;
<span class="hljs-keyword">import</span> net.minecraft.client.renderer.entity.layers.LayerCape;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Mixin;

<span class="hljs-meta">@Mixin</span>(LayerCape.class)
<span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MixinLayerCape</span> </span>{
    <span class="hljs-keyword">private</span> HyperiumLayerCape hyperiumLayerCape = <span class="hljs-keyword">new</span> HyperiumLayerCape(<span class="hljs-keyword">this</span>);
}
</code></pre>
<p>&#x4F46;&#x662F;&#x8FD9;&#x6837;&#x4F1A;&#x6709;&#x4E00;&#x4E2A;&#x95EE;&#x9898;&#xFF1A;&#x867D;&#x7136;&#x5B9E;&#x9645;&#x8FD0;&#x884C;&#x65F6;&#x7684;<code>this</code>&#x6211;&#x4EEC;&#x77E5;&#x9053;&#x662F;<code>LayerCape</code>&#x7C7B;&#x578B;&#x7684;&#xFF0C;&#x4F46;&#x662F;&#x7F16;&#x8BD1;&#x5668;&#x8BA4;&#x4E3A;&#x7684;<code>this</code>&#x662F;<code>MixinLayerCape</code>&#x7C7B;&#x578B;&#xFF0C;&#x6240;&#x4EE5;&#x7F16;&#x8BD1;&#x65F6;&#x4F1A;&#x62A5;&#x9519;&#xFF0C;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#x4E5F;&#x5F88;&#x7B80;&#x5355;&#x2014;&#x2014;&#x505A;&#x4E24;&#x6B21;&#x5F3A;&#x5236;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#x5C31;&#x884C;&#x4E86;&#xFF1A;</p>
<pre><code class="lang-java">    <span class="hljs-keyword">private</span> HyperiumLayerCape hyperiumLayerCape = <span class="hljs-keyword">new</span> HyperiumLayerCape((LayerCape) (Object) <span class="hljs-keyword">this</span>);
</code></pre>
<p>&#x4E0D;&#x5FC5;&#x62C5;&#x5FC3;&#x5F3A;&#x5236;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#x5E26;&#x6765;&#x7684;&#x8FD0;&#x884C;&#x6548;&#x7387;&#x635F;&#x8017;&#xFF0C;&#x56E0;&#x4E3A;Mixin&#x4F1A;&#x5728;&#x5408;&#x5E76;&#x65F6;&#x667A;&#x80FD;&#x5730;&#x5224;&#x65AD;&#x5E76;&#x9664;&#x53BB;&#x8FD9;&#x79CD;&#x4E0D;&#x5FC5;&#x8981;&#x7684;&#x5F3A;&#x5236;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#x3002;</p>
<h2 id="&#x8BBF;&#x95EE;&#x76EE;&#x6807;&#x7C7B;&#x7684;&#x7236;&#x7C7B;&#x6210;&#x5458;">&#x8BBF;&#x95EE;&#x76EE;&#x6807;&#x7C7B;&#x7684;&#x7236;&#x7C7B;&#x6210;&#x5458;</h2>
<p>&#x901A;&#x8FC7;&#x4E4B;&#x524D;&#x7684;&#x6559;&#x7A0B;&#x6211;&#x4EEC;&#x77E5;&#x9053;&#xFF0C;<code>@Shadow</code>&#x6CE8;&#x89E3;&#x53EF;&#x4EE5;&#x6807;&#x8BC6;&#x5728;&#x6CE8;&#x5165;&#x7C7B;&#x4E2D;&#x5B58;&#x5728;&#x7684;&#x539F;&#x672C;&#x5B58;&#x5728;&#x4E8E;&#x76EE;&#x6807;&#x7C7B;&#x4E2D;&#x7684;&#x6210;&#x5458;&#x3002;&#x90A3;&#x4E48;&#x5982;&#x679C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x8BBF;&#x95EE;&#x76EE;&#x6807;&#x7C7B;&#x7684;&#x7236;&#x7C7B;&#x4E2D;&#x7684;&#x5B57;&#x6BB5;&#x6216;&#x8005;&#x65B9;&#x6CD5;&#xFF0C;&#x8BE5;&#x5982;&#x4F55;&#x5904;&#x7406;&#xFF1F;</p>
<p>&#x6BD4;&#x5982;&#x6709;&#x4E00;&#x4E2A;&#x9700;&#x6C42;&#xFF1A;&#x5728;&#x4E3B;&#x83DC;&#x5355;<code>GuiMainMenu</code>&#x4E2D;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x6309;&#x94AE;&#x3002;<br>&#x6211;&#x4EEC;&#x77E5;&#x9053;&#x5B58;&#x653E;&#x6309;&#x94AE;&#x7684;&#x5B57;&#x6BB5;&#x662F;<code>buttonList</code>&#xFF0C;&#x4F46;&#x662F;&#x8FD9;&#x4E2A;&#x5B57;&#x6BB5;&#x5E76;&#x4E0D;&#x5B58;&#x5728;&#x4E8E;<code>GuiMainMenu</code>&#x4E2D;&#xFF0C;&#x800C;&#x662F;&#x5B58;&#x5728;&#x4E8E;&#x5B83;&#x7684;&#x7236;&#x7C7B;<code>GuiScreen</code>&#x4E2D;&#xFF0C;&#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x5E76;&#x4E0D;&#x80FD;&#x901A;&#x8FC7;<code>@Shadow</code>&#x6765;&#x6807;&#x8BB0;&#x5B83;&#x3002;<br>&#x4F46;&#x662F;&#x89E3;&#x51B3;&#x65B9;&#x6CD5;&#x4E5F;&#x5F88;&#x7B80;&#x5355;&#xFF1A;&#x8BA9;<code>MixinGuiMainMenu</code>&#x4E5F;&#x7EE7;&#x627F;<code>GuiScreen</code>&#x5C31;&#x884C;&#x4E86;&#xFF01;  </p>
<pre><code class="lang-java"><span class="hljs-keyword">package</span> com.example.mixins;

<span class="hljs-keyword">import</span> net.minecraft.client.gui.GuiButton;
<span class="hljs-keyword">import</span> net.minecraft.client.gui.GuiMainMenu;
<span class="hljs-keyword">import</span> net.minecraft.client.gui.GuiScreen;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Mixin;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.injection.At;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.injection.Inject;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

<span class="hljs-meta">@Mixin</span>(GuiMainMenu.class)
<span class="hljs-keyword">public</span> <span class="hljs-keyword">abstract</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MixinGuiMainMenu</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">GuiScreen</span> </span>{
    <span class="hljs-comment">// &#x5982;&#x679C;&#x7EE7;&#x627F;&#x7684;&#x7C7B;&#x6CA1;&#x6709;&#x65E0;&#x53C2;&#x6784;&#x9020;&#x65B9;&#x6CD5;&#x5E76;&#x8981;&#x6C42;&#x5B50;&#x7C7B;&#x5FC5;&#x987B;&#x6709;&#x663E;&#x5F0F;&#x7684;&#x6784;&#x9020;&#x65B9;&#x6CD5;&#xFF0C;</span>
    <span class="hljs-comment">// &#x90A3;&#x4E48;&#x5C31;&#x5728;&#x6CE8;&#x5165;&#x7C7B;&#x4E2D;&#x968F;&#x4FBF;&#x5199;&#x4E00;&#x4E2A;&#x9ED8;&#x8BA4;&#x7684;&#x6784;&#x9020;&#x65B9;&#x6CD5;&#x5C31;&#x884C;&#x4E86;&#xFF0C;</span>
    <span class="hljs-comment">// &#x4E0D;&#x5FC5;&#x62C5;&#x5FC3;&#x6CE8;&#x5165;&#x7C7B;&#x4E2D;&#x7684;&#x6784;&#x9020;&#x65B9;&#x6CD5;&#x88AB;&#x5408;&#x5E76;&#x5230;&#x76EE;&#x6807;&#x7C7B;&#x4E2D;&#x53BB;</span>
    <span class="hljs-function"><span class="hljs-keyword">private</span> <span class="hljs-title">MixinGuiMainMenu</span><span class="hljs-params">()</span> </span>{
        <span class="hljs-keyword">super</span>();
    }

    <span class="hljs-meta">@Inject</span>(method = <span class="hljs-string">&quot;initGui&quot;</span>, at = <span class="hljs-meta">@At</span>(<span class="hljs-string">&quot;RETURN&quot;</span>))
    <span class="hljs-function"><span class="hljs-keyword">private</span> <span class="hljs-keyword">void</span> <span class="hljs-title">inject_initGui</span><span class="hljs-params">(CallbackInfo ci)</span> </span>{
        <span class="hljs-keyword">this</span>.buttonList.add(<span class="hljs-keyword">new</span> GuiButton(<span class="hljs-number">114</span>, <span class="hljs-number">5</span>, <span class="hljs-number">14</span>, <span class="hljs-string">&quot;&quot;</span>));
    }
}
</code></pre>
<p>&#x6240;&#x4EE5;&#x6CE8;&#x5165;&#x7C7B;&#x8BBF;&#x95EE;&#x76EE;&#x6807;&#x7C7B;&#x7236;&#x7C7B;&#x6210;&#x5458;&#x7684;&#x65B9;&#x6CD5;&#x662F;&#xFF1A;&#x8BA9;&#x6CE8;&#x5165;&#x7C7B;&#x4E5F;&#x7EE7;&#x627F;&#x76EE;&#x6807;&#x7C7B;&#x7684;&#x7236;&#x7C7B;&#x6216;&#x63A5;&#x53E3;&#x3002;</p>
<p>&#x7C7B;&#x4F3C;&#x7684;&#xFF0C;&#x5982;&#x679C;&#x76EE;&#x6807;&#x7C7B;&#x662F;&#x6CDB;&#x578B;&#x7C7B;&#xFF0C;&#x90A3;&#x4E48;&#x5C31;&#x8BA9;&#x6CE8;&#x5165;&#x7C7B;&#x4F7F;&#x7528;&#x76F8;&#x540C;&#x7684;&#x6CDB;&#x578B;&#x5C31;&#x884C;&#x4E86;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-meta">@Mixin</span>(Render.class)
<span class="hljs-keyword">public</span> <span class="hljs-keyword">abstract</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MixinRender</span>&lt;<span class="hljs-title">T</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">Entity</span>&gt;
</span></code></pre>
<p>&#x5982;&#x679C;&#x6CDB;&#x578B;&#x7684;&#x6709;&#x754C;&#x7C7B;&#x578B;&#x662F;&#x975E;&#x516C;&#x6709;&#x7684;&#xFF0C;&#x90A3;&#x4E48;&#x53EA;&#x80FD;&#x5BF9;&#x6BCF;&#x4E2A;&#x6D89;&#x53CA;&#x5230;&#x6CDB;&#x578B;&#x7684;&#x6CE8;&#x5165;&#x65B9;&#x6CD5;&#x7684;&#x76F8;&#x5173;&#x53C2;&#x6570;&#x4F7F;&#x7528;<code>@Corece</code>&#x6CE8;&#x89E3;&#x3002;</p>
<h2 id="&#x5411;&#x76EE;&#x6807;&#x7C7B;&#x4E2D;&#x6DFB;&#x52A0;&#x7C7B;&#x6210;&#x5458;">&#x5411;&#x76EE;&#x6807;&#x7C7B;&#x4E2D;&#x6DFB;&#x52A0;&#x7C7B;&#x6210;&#x5458;</h2>
<p>&#x65E2;&#x7136;&#x6CE8;&#x5165;&#x7C7B;&#x80FD;&#x7EE7;&#x627F;&#x76EE;&#x6807;&#x7C7B;&#x539F;&#x6709;&#x7684;&#x7236;&#x7C7B;&#x6216;&#x63A5;&#x53E3;&#xFF0C;&#x90A3;&#x4E48;&#x80FD;&#x4E0D;&#x80FD;&#x8BA9;&#x6CE8;&#x5165;&#x7C7B;&#x7EE7;&#x627F;&#x76EE;&#x6807;&#x7C7B;&#x539F;&#x672C;&#x6CA1;&#x6709;&#x7EE7;&#x627F;&#x7684;&#x7C7B;&#x6216;&#x63A5;&#x53E3;&#xFF0C;&#x4EE5;&#x5B9E;&#x73B0;&#x5728;&#x76EE;&#x6807;&#x7C7B;&#x4E2D;&#x7EE7;&#x627F;&#x6A21;&#x7EC4;&#x60F3;&#x8BA9;&#x5B83;&#x7EE7;&#x627F;&#x7684;&#x7C7B;&#x6216;&#x63A5;&#x53E3;&#xFF1F;<br>&#x5F53;&#x7136;&#x53EF;&#x4EE5;&#xFF01;&#x8FD9;&#x4E5F;&#x662F;Mixin&#x63A8;&#x8350;&#x7684;&#x5411;&#x76EE;&#x6807;&#x7C7B;&#x4E2D;&#x6DFB;&#x52A0;&#x7C7B;&#x6210;&#x5458;&#x7684;&#x65B9;&#x6CD5;&#x4E4B;&#x4E00;&#x3002;</p>
<p>&#x53EF;&#x80FD;&#x6709;&#x4EBA;&#x4F1A;&#x95EE;&#xFF0C;&#x65E2;&#x7136;&#x6CE8;&#x5165;&#x7C7B;&#x6700;&#x540E;&#x4F1A;&#x88AB;&#x5408;&#x5E76;&#x5230;&#x76EE;&#x6807;&#x7C7B;&#x4E2D;&#x53BB;&#xFF0C;&#x90A3;&#x4E48;&#x76F4;&#x63A5;&#x5728;&#x6CE8;&#x5165;&#x7C7B;&#x4E2D;&#x6DFB;&#x52A0;&#x6210;&#x5458;&#x4E0D;&#x53EF;&#x4EE5;&#x5417;&#xFF1F;<br>&#x7B54;&#x6848;&#x662F;&#xFF1A;&#x867D;&#x7136;&#x53EF;&#x4EE5;&#xFF0C;&#x4F46;&#x6709;&#x9650;&#x5236;&#x3002;<br>&#x5982;&#x679C;&#x4F60;&#x4EC5;&#x4EC5;&#x662F;&#x60F3;&#x5728;&#x6CE8;&#x5165;&#x7C7B;&#x5185;&#x90E8;&#x8BBF;&#x95EE;&#xFF0C;&#x8FD9;&#x4E48;&#x505A;&#x5B8C;&#x5168;&#x6CA1;&#x6709;&#x95EE;&#x9898;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-keyword">package</span> com.example.mixins;

<span class="hljs-keyword">import</span> net.minecraft.client.Minecraft;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Mixin;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.injection.Constant;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.injection.ModifyConstant;

<span class="hljs-meta">@Mixin</span>(Minecraft.class)
<span class="hljs-keyword">public</span> <span class="hljs-keyword">abstract</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MixinMinecraft</span> </span>{
    <span class="hljs-keyword">private</span> String title = <span class="hljs-string">&quot;MyCustomTitle&quot;</span>;

    <span class="hljs-meta">@ModifyConstant</span>(method = <span class="hljs-string">&quot;createDisplay&quot;</span>, constant = <span class="hljs-meta">@Constant</span>(stringValue = <span class="hljs-string">&quot;Minecraft 1.12.2&quot;</span>))
    <span class="hljs-function"><span class="hljs-keyword">private</span> String <span class="hljs-title">modifyConstant_createDisplay</span><span class="hljs-params">(String title)</span> </span>{
        <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.getTitle();
    }

    <span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">getTitle</span><span class="hljs-params">()</span> </span>{
        <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.title;
    }
}
</code></pre>
<p>&#x4F46;&#x662F;&#xFF0C;&#x5F53;&#x5916;&#x90E8;&#x60F3;&#x8981;&#x8BBF;&#x95EE;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5C31;&#x4F1A;&#x51FA;&#x95EE;&#x9898;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">foo</span><span class="hljs-params">()</span> </span>{
    <span class="hljs-comment">// &#x6A21;&#x4EFF;&#x4E4B;&#x524D;&#x7684;&#x4E24;&#x6B21;&#x5F3A;&#x5236;&#x7C7B;&#x578B;&#x8F6C;&#x6362;</span>
    ((MixinMinecraft) (Object) Minecraft.getMinecraft()).getTitle();
}
</code></pre>
<p>&#x4F60;&#x4F1A;&#x5F97;&#x5230;&#x4E00;&#x4E2A;&#x5F02;&#x5E38;&#xFF1A;</p>
<pre><code>java.lang.ClassNotFoundException: com.example.mixins.MixinMinecraft
</code></pre><p>&#x56E0;&#x4E3A;Mixin&#x4F1A;&#x628A;&#x6240;&#x6709;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x7B26;&#x5408;&#x8981;&#x6C42;&#x7684;&#x6CE8;&#x5165;&#x7C7B;&#x90FD;<a href="https://github.com/SpongePowered/Mixin/blob/2c72246fe0b67c145db5510e66c8873df18b5a9f/src/launchwrapper/java/org/spongepowered/asm/service/mojang/LaunchClassLoaderUtil.java#L148" target="_blank">&#x6DFB;&#x52A0;&#x5230;</a><code>LaunchClassLoader</code>&#x7684;<code>invalidClasses</code>&#x4E2D;&#x53BB;&#xFF0C;&#x963B;&#x6B62;&#x5916;&#x90E8;&#x8BBF;&#x95EE;&#x6CE8;&#x5165;&#x7C7B;&#x4EE5;&#x81F3;&#x4E8E;&#x9020;&#x6210;&#x4E0D;&#x5FC5;&#x8981;&#x7684;&#x9EBB;&#x70E6;&#x3002;<br><em>&#x867D;&#x7136;&#x7528;&#x53CD;&#x5C04;&#x53EF;&#x4EE5;&#x8FD0;&#x884C;&#xFF0C;&#x6CA1;&#x6709;&#x51FA;&#x73B0;&#x95EE;&#x9898;&#xFF0C;&#x4F46;&#x662F;&#x8FD9;&#x6837;&#x4E0D;&#x4FBF;&#x4E8E;&#x7EF4;&#x62A4;&#xFF0C;&#x800C;&#x4E14;&#x8FD0;&#x884C;&#x6548;&#x7387;&#x6709;&#x6240;&#x635F;&#x5931;&#x3002;</em></p>
<p>&#x6B63;&#x786E;&#x7684;&#x505A;&#x6CD5;&#x662F;&#xFF1A;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x63A5;&#x53E3;&#xFF0C;&#x5E76;&#x5728;&#x6CE8;&#x5165;&#x7C7B;&#x4E2D;&#x5B9E;&#x73B0;&#x5B83;&#xFF0C;&#x5916;&#x90E8;&#x7C7B;&#x8BBF;&#x95EE;&#x65F6;&#x5F3A;&#x5236;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#x5230;&#x5BF9;&#x5E94;&#x63A5;&#x53E3;&#x5373;&#x53EF;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-keyword">package</span> com.example.mixins;
<span class="hljs-comment">// &#x8FD9;&#x4E2A;&#x63A5;&#x53E3;&#x4E0D;&#x9700;&#x8981;@Mixin&#x6CE8;&#x89E3;&#xFF0C;&#x4E5F;&#x4E0D;&#x9700;&#x8981;&#x6DFB;&#x52A0;&#x5230;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;</span>
<span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">IMixinMinecraft</span> </span>{
    <span class="hljs-function">String <span class="hljs-title">getTitle</span><span class="hljs-params">()</span></span>;
}
</code></pre>
<pre><code class="lang-java"><span class="hljs-keyword">package</span> com.example.mixins;

<span class="hljs-keyword">import</span> net.minecraft.client.Minecraft;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Mixin;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.injection.Constant;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.injection.ModifyConstant;

<span class="hljs-meta">@Mixin</span>(Minecraft.class)
<span class="hljs-keyword">public</span> <span class="hljs-keyword">abstract</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MixinMinecraft</span> <span class="hljs-keyword">implements</span> <span class="hljs-title">IMixinMinecraft</span> </span>{
    <span class="hljs-keyword">private</span> String title = <span class="hljs-string">&quot;MyCustomTitle&quot;</span>;

    <span class="hljs-meta">@ModifyConstant</span>(method = <span class="hljs-string">&quot;createDisplay&quot;</span>, constant = <span class="hljs-meta">@Constant</span>(stringValue = <span class="hljs-string">&quot;Minecraft 1.12.2&quot;</span>))
    <span class="hljs-function"><span class="hljs-keyword">private</span> String <span class="hljs-title">modifyConstant_createDisplay</span><span class="hljs-params">(String title)</span> </span>{
        <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.getTitle();
    }

    <span class="hljs-meta">@Override</span>
    <span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">getTitle</span><span class="hljs-params">()</span> </span>{
        <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.title;
    }
}
</code></pre>
<p>&#x8FD9;&#x6837;&#xFF0C;&#x5916;&#x90E8;&#x5C31;&#x80FD;&#x6B63;&#x5E38;&#x8BBF;&#x95EE;&#xFF0C;&#x5E76;&#x4E0D;&#x4F1A;&#x51FA;&#x95EE;&#x9898;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">foo</span><span class="hljs-params">()</span> </span>{
    ((IMixinMinecraft) Minecraft.getMinecraft()).getTitle();
}
</code></pre>
<h2 id="&#x5916;&#x90E8;&#x8BBF;&#x95EE;&#x76EE;&#x6807;&#x7C7B;&#x975E;&#x516C;&#x6709;&#x6210;&#x5458;">&#x5916;&#x90E8;&#x8BBF;&#x95EE;&#x76EE;&#x6807;&#x7C7B;&#x975E;&#x516C;&#x6709;&#x6210;&#x5458;</h2>
<p>&#x5728;&#x4EE5;&#x5F80;&#x7684;&#x4EE3;&#x7801;&#x4E2D;&#xFF0C;&#x5982;&#x679C;&#x60F3;&#x8981;&#x8BBF;&#x95EE;Minecraft&#x4E2D;&#x7C7B;&#x7684;&#x67D0;&#x4E9B;&#x975E;&#x516C;&#x6709;&#x6210;&#x5458;&#xFF0C;&#x4E00;&#x822C;&#x6709;&#x4E24;&#x79CD;&#x9014;&#x5F84;&#xFF1A;&#x53CD;&#x5C04;&#x4E0E;<code>Access Transformer</code>&#xFF1B;<br>&#x5BF9;&#x4E8E;&#x5728;Forge&#x4E0B;&#x7684;&#x6A21;&#x7EC4;&#xFF0C;&#x4E00;&#x822C;&#x90FD;&#x4F1A;&#x7528;<code>FMLAT</code>&#xFF0C;&#x7136;&#x800C;Mixin&#x4E0D;&#x4EC5;&#x4EC5;&#x80FD;&#x5728;Forge&#x73AF;&#x5883;&#x4E0B;&#x8FD0;&#x884C;&#xFF0C;&#x6240;&#x4EE5;Mixin&#x6709;&#x4E00;&#x5957;&#x81EA;&#x5DF1;&#x7684;&#x65B9;&#x6CD5;&#x3002;</p>
<p>&#x6BD4;&#x5982;&#x6709;&#x8FD9;&#x4E48;&#x4E00;&#x4E2A;&#x9700;&#x6C42;&#xFF1A;8&#x6708;14&#x53F7;&#x662F;<a href="https://optifine.net/home" target="_blank">OptiFine</a>&#x4F5C;&#x8005;<a href="https://github.com/sp614x" target="_blank">sp614x</a>&#x7684;&#x751F;&#x65E5;&#xFF0C;&#x73B0;&#x5728;&#x8981;&#x6C42;&#x6BCF;&#x5E74;&#x8FD9;&#x4E2A;&#x65F6;&#x5019;&#x5728;&#x4E3B;&#x83DC;&#x5355;&#x754C;&#x9762;<code>GuiMainMenu</code>&#x7684;<a href="https://minecraft-zh.gamepedia.com/index.php?title=%E9%97%AA%E7%83%81%E6%A0%87%E8%AF%AD&amp;variant=zh-cn" target="_blank">&#x95EA;&#x70C1;&#x6807;&#x8BED;</a><code>splashText</code>&#x663E;&#x793A;&#x4E3A;<code>Happy birthday, sp614x!</code>&#x3002;<br>&#x73B0;&#x5728;&#x6211;&#x4EEC;&#x5C1D;&#x8BD5;&#x4E00;&#x4E0B;&#xFF1A;</p>
<ol>
<li><p>&#x7528;&#x4E0A;&#x9762;&#x4E00;&#x5C0F;&#x8282;&#x7684;&#x65B9;&#x6CD5;&#xFF1A;</p>
<pre><code class="lang-java"> <span class="hljs-keyword">package</span> com.example.mixins;

 <span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">IMixinGuiMainMenu</span> </span>{
     <span class="hljs-function"><span class="hljs-keyword">void</span> <span class="hljs-title">setSplashText</span><span class="hljs-params">(String text)</span></span>;
 }
</code></pre>
<pre><code class="lang-java"> <span class="hljs-keyword">package</span> com.example.mixins;

 <span class="hljs-keyword">import</span> net.minecraft.client.gui.GuiMainMenu;
 <span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Mixin;
 <span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Shadow;

 <span class="hljs-meta">@Mixin</span>(GuiMainMenu.class)
 <span class="hljs-keyword">public</span> <span class="hljs-keyword">abstract</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MixinGuiMainMenu</span> <span class="hljs-keyword">implements</span> <span class="hljs-title">IMixinGuiMainMenu</span> </span>{
     <span class="hljs-meta">@Shadow</span> <span class="hljs-keyword">private</span> String splashText;

     <span class="hljs-meta">@Override</span>
     <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">setSplashText</span><span class="hljs-params">(String text)</span> </span>{
         <span class="hljs-keyword">this</span>.splashText = text;
     }
 }
</code></pre>
<pre><code class="lang-java"> <span class="hljs-keyword">package</span> com.example.mixins;

 <span class="hljs-keyword">import</span> java.time.MonthDay;
 <span class="hljs-keyword">import</span> net.minecraft.client.Minecraft;
 <span class="hljs-keyword">import</span> net.minecraft.client.gui.GuiMainMenu;
 <span class="hljs-keyword">import</span> net.minecraft.client.renderer.EntityRenderer;
 <span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Final;
 <span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Mixin;
 <span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Shadow;
 <span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.injection.At;
 <span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.injection.Inject;
 <span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

 <span class="hljs-meta">@Mixin</span>(EntityRenderer.class) <span class="hljs-comment">// &#x4E0D;&#x8981;&#x95EE;&#x6211;&#x4E3A;&#x4EC0;&#x4E48;&#x6CE8;&#x5165;&#x7684;&#x662F;EntityRenderer&#xFF0C;&#x4F60;&#x5F97;&#x53BB;&#x95EE;sp614x</span>
 <span class="hljs-keyword">public</span> <span class="hljs-keyword">abstract</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MixinEntityRenderer</span> </span>{
     <span class="hljs-meta">@Shadow</span> <span class="hljs-meta">@Final</span> <span class="hljs-keyword">private</span> Minecraft mc;

     <span class="hljs-meta">@Inject</span>(method = <span class="hljs-string">&quot;updateCameraAndRender&quot;</span>, at = <span class="hljs-meta">@At</span>(<span class="hljs-string">&quot;HEAD&quot;</span>))
     <span class="hljs-function"><span class="hljs-keyword">private</span> <span class="hljs-keyword">void</span> <span class="hljs-title">inject_updateCameraAndRender</span><span class="hljs-params">(CallbackInfo ci)</span> </span>{
         <span class="hljs-keyword">if</span> (<span class="hljs-keyword">this</span>.mc.currentScreen <span class="hljs-keyword">instanceof</span> GuiMainMenu &amp;&amp; MonthDay.now().equals(MonthDay.of(<span class="hljs-number">8</span>, <span class="hljs-number">14</span>))) {
             ((IMixinGuiMainMenu) <span class="hljs-keyword">this</span>.mc.currentScreen).setSplashText(<span class="hljs-string">&quot;Happy birthday, sp614x!&quot;</span>);
         } <span class="hljs-comment">// &#x8FD9;&#x4E2A;&#x5C31;&#x76F8;&#x5F53;&#x4E8E;&#x5916;&#x90E8;&#x53BB;&#x8BBF;&#x95EE; GuiMainMenu &#x7684;&#x79C1;&#x6709;&#x6210;&#x5458; splashText</span>
     }
 }
</code></pre>
<p> &#x4E0A;&#x9762;&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;&#x662F;&#x5B8C;&#x5168;&#x53EF;&#x884C;&#x7684;&#xFF0C;&#x4E5F;&#x662F;Mixin&#x65E9;&#x671F;&#x7248;&#x672C;&#x4E0B;&#x7684;&#x4E00;&#x4E2A;&#x65B9;&#x6848;&#x3002;</p>
</li>
<li><p>Mixin&#x5728;0.6&#x7248;&#x672C;&#x65B0;&#x589E;&#x4E86;&#x4E24;&#x4E2A;&#x6CE8;&#x89E3;&#x7528;&#x4E8E;&#x5E94;&#x5BF9;&#x4EE5;&#x4E0A;&#x8FD9;&#x4E2A;&#x72B6;&#x51B5;&#xFF1A;</p>
<ul>
<li><p><code>@Accessor</code>&#xFF08;<a href="http://jenkins.liteloader.com/job/Mixin/javadoc/org/spongepowered/asm/mixin/gen/Accessor.html" target="_blank">&#x6587;&#x6863;</a>&#xFF09;<br>  &#x6807;&#x8BB0;&#x4E00;&#x4E2A;<strong>&#x62BD;&#x8C61;</strong>&#x65B9;&#x6CD5;&#xFF0C;&#x7528;&#x4E8E;&#x8BBF;&#x95EE;&#x975E;&#x516C;&#x6709;&#x5B57;&#x6BB5;&#x3002;<br>  &#x65B9;&#x6CD5;&#x7B7E;&#x540D;&#x9700;&#x8981;&#x9075;&#x5FAA;&#x4EE5;&#x4E0B;&#x89C4;&#x5219;&#xFF1A;</p>
<ul>
<li><code>get</code>&#x5F00;&#x5934;&#xFF1A;&#x7528;&#x4E8E;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;&#x5B57;&#x6BB5;&#xFF0C;&#x6B64;&#x65B9;&#x6CD5;&#x7684;&#x8FD4;&#x56DE;&#x7C7B;&#x578B;&#x5FC5;&#x987B;&#x548C;&#x8BE5;&#x5B57;&#x6BB5;&#x7684;&#x7C7B;&#x578B;&#x76F8;&#x540C;&#xFF0C;&#x4E14;&#x65B9;&#x6CD5;&#x4E0D;&#x80FD;&#x6709;&#x53C2;&#x6570;&#x3002;</li>
<li><code>is</code>&#x5F00;&#x5934;&#xFF1A;&#x7528;&#x4E8E;&#x83B7;&#x53D6;&#x4E00;&#x4E2A;<code>boolean</code>&#x7C7B;&#x578B;&#x7684;&#x5B57;&#x6BB5;&#xFF0C;&#x4E14;&#x65B9;&#x6CD5;&#x4E0D;&#x80FD;&#x6709;&#x53C2;&#x6570;&#x3002;</li>
<li><p><code>set</code>&#x5F00;&#x5934;&#xFF1A;&#x7528;&#x4E8E;&#x4FEE;&#x6539;&#x4E00;&#x4E2A;&#x5B57;&#x6BB5;&#x7684;&#x503C;&#xFF0C;&#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x7C7B;&#x578B;&#x5FC5;&#x987B;&#x662F;<code>void</code>&#xFF0C;&#x6709;&#x4E14;&#x4EC5;&#x80FD;&#x6709;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#xFF0C;&#x53C2;&#x6570;&#x7C7B;&#x578B;&#x548C;&#x5B57;&#x6BB5;&#x7C7B;&#x578B;&#x5FC5;&#x987B;&#x4E00;&#x81F4;&#x3002;</p>
<p>&#x65B9;&#x6CD5;&#x540D;&#x5269;&#x4F59;&#x90E8;&#x5206;&#x5FC5;&#x987B;&#x4E0E;&#x76EE;&#x6807;&#x5B57;&#x6BB5;&#x7684;&#x4E00;&#x81F4;&#xFF0C;&#x4E14;&#x9996;&#x5B57;&#x6BCD;&#x987B;&#x5927;&#x5199;&#x3002;<br>&#x5982;&#x679C;&#x6307;&#x5B9A;&#x4E86;<code>value</code>&#x5C5E;&#x6027;&#x7684;&#x503C;&#xFF0C;&#x8BE5;&#x5C5E;&#x6027;&#x7684;&#x503C;&#x9700;&#x8981;&#x4E0E;&#x76EE;&#x6807;&#x5B57;&#x6BB5;&#x7684;&#x540D;&#x79F0;&#x5B8C;&#x5168;&#x4E00;&#x81F4;&#xFF0C;&#x8FD9;&#x6837;&#xFF0C;&#x65B9;&#x6CD5;&#x540D;&#x53EF;&#x4EE5;&#x968F;&#x610F;&#x53D6;&#xFF0C;&#x4F46;&#x662F;&#x65B9;&#x6CD5;&#x53C2;&#x6570;&#x4E0E;&#x8FD4;&#x56DE;&#x7C7B;&#x578B;&#x4F9D;&#x7136;&#x9700;&#x8981;&#x9075;&#x5FAA;&#x4E0A;&#x8FF0;&#x89C4;&#x5219;&#x3002;</p>
</li>
</ul>
</li>
<li><p><code>@Invoker</code>&#xFF08;<a href="http://jenkins.liteloader.com/job/Mixin/javadoc/org/spongepowered/asm/mixin/gen/Invoker.html" target="_blank">&#x6587;&#x6863;</a>&#xFF09;<br>  &#x6807;&#x8BB0;&#x4E00;&#x4E2A;<strong>&#x62BD;&#x8C61;</strong>&#x65B9;&#x6CD5;&#xFF0C;&#x7528;&#x4E8E;&#x8BBF;&#x95EE;&#x975E;&#x516C;&#x6709;&#x65B9;&#x6CD5;&#x3002;<br>  &#x65B9;&#x6CD5;&#x7B7E;&#x540D;&#x9700;&#x8981;&#x9075;&#x5FAA;&#x4EE5;&#x4E0B;&#x89C4;&#x5219;&#xFF1A;</p>
<ul>
<li><p><code>call</code>&#x6216;&#x8005;<code>invoke</code>&#x5F00;&#x5934;&#xFF0C;&#x5269;&#x4F59;&#x90E8;&#x5206;&#x9700;&#x8981;&#x548C;&#x76EE;&#x6807;&#x65B9;&#x6CD5;&#x540D;&#x4E00;&#x81F4;&#xFF0C;&#x4E14;&#x9996;&#x5B57;&#x6BCD;&#x5927;&#x5199;&#xFF0C;&#x53C2;&#x6570;&#x548C;&#x8FD4;&#x56DE;&#x7C7B;&#x578B;&#x4E5F;&#x9700;&#x8981;&#x548C;&#x76EE;&#x6807;&#x65B9;&#x6CD5;&#x4E00;&#x81F4;&#x3002;</p>
<p>&#x5F53;&#x6307;&#x5B9A;&#x4E86;<code>value</code>&#x5C5E;&#x6027;&#x4E4B;&#x540E;&#xFF0C;&#x65B9;&#x6CD5;&#x540D;&#x53EF;&#x4EE5;&#x4EFB;&#x610F;&#x53D6;&#xFF0C;&#x53C2;&#x6570;&#x7C7B;&#x578B;&#x548C;&#x6076;&#x8FD4;&#x56DE;&#x7C7B;&#x578B;&#x4ECD;&#x7136;&#x9700;&#x8981;&#x9075;&#x5B88;&#x4E0A;&#x8FF0;&#x89C4;&#x5219;&#x3002;</p>
</li>
</ul>
<p>&#x5982;&#x679C;&#x4F60;&#x60F3;&#x8BA9;&#x5916;&#x90E8;&#x7C7B;&#x8BBF;&#x95EE;&#x8FD9;&#x4E9B;&#x65B9;&#x6CD5;&#xFF0C;&#x90A3;&#x4E48;&#x8FD9;&#x4E24;&#x4E2A;&#x6CE8;&#x89E3;&#x4EC5;&#x80FD;&#x51FA;&#x73B0;&#x5728;&#x63A5;&#x53E3;&#x4E2D;&#xFF0C;&#x76F8;&#x5173;&#x63A5;&#x53E3;&#x6709;&#x4E14;<strong>&#x4EC5;</strong>&#x80FD;&#x6709;&#x8FD9;&#x4E24;&#x4E2A;Mixin&#x6CE8;&#x89E3;&#xFF0C;&#x5426;&#x5219;&#x4F1A;&#x88AB;Mixin&#x52A0;&#x5165;&#x5230;<code>invalidClasses</code>&#x4E2D;&#x53BB;&#xFF0C;&#x9020;&#x6210;&#x65E0;&#x6CD5;&#x8BBF;&#x95EE;&#x7684;&#x95EE;&#x9898;&#x3002;
&#x73B0;&#x5728;&#x5229;&#x7528;&#x8FD9;&#x4E2A;&#x6CE8;&#x89E3;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x629B;&#x5F03;<code>MixinGuiMainMenu</code>&#x4E86;&#xFF0C;&#x5BF9;<code>IMixinGuiMainMenu</code>&#x7565;&#x52A0;&#x4FEE;&#x6539;&#x5373;&#x53EF;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-keyword">package</span> com.example.mixins;

<span class="hljs-keyword">import</span> net.minecraft.client.gui.GuiMainMenu;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Mixin;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.gen.Accessor;

<span class="hljs-meta">@Mixin</span>(GuiMainMenu.class) <span class="hljs-comment">// &#x6CE8;&#x610F;&#x8FD9;&#x91CC;&#x5F97;&#x6709;@Mixin&#x6CE8;&#x89E3;&#xFF0C;&#x800C;&#x4E14;&#x8FD9;&#x4E2A;&#x63A5;&#x53E3;&#x5F97;&#x5199;&#x5230;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x53BB;</span>
<span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">IMixinGuiMainMenu</span> </span>{
  <span class="hljs-meta">@Accessor</span>
  <span class="hljs-function"><span class="hljs-keyword">void</span> <span class="hljs-title">setSplashText</span><span class="hljs-params">(String text)</span></span>;
}
</code></pre>
<p>&#x6211;&#x4EEC;&#x5E76;&#x4E0D;&#x9700;&#x8981;&#x81EA;&#x5DF1;&#x624B;&#x52A8;&#x53BB;&#x5B9E;&#x73B0;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#xFF0C;Mixin&#x4F1A;&#x5E2E;&#x6211;&#x4EEC;&#x5B9E;&#x73B0;&#x3002;</p>
</li>
</ul>
</li>
</ol>
<h2 id="&#x300C;&#x91CD;&#x8F7D;&#x300D;&#x65B9;&#x6CD5;">&#x300C;&#x91CD;&#x8F7D;&#x300D;&#x65B9;&#x6CD5;</h2>
<p>&#x6211;&#x4EEC;&#x90FD;&#x77E5;&#x9053;Java&#x4E2D;&#x53EF;&#x4EE5;&#x91CD;&#x8F7D;&#x65B9;&#x6CD5;&#xFF0C;&#x540C;&#x4E00;&#x4E2A;&#x7C7B;&#x4E2D;&#x53EF;&#x4EE5;&#x5B58;&#x5728;&#x65B9;&#x6CD5;&#x540D;&#x76F8;&#x540C;&#xFF0C;&#x4F46;&#x65B9;&#x6CD5;&#x53C2;&#x6570;&#x4E0D;&#x540C;&#x7684;&#x4E24;&#x4E2A;&#x65B9;&#x6CD5;&#x3002;
JVM&#x5728;&#x8FD0;&#x884C;&#x4F9D;&#x9760;&#x65B9;&#x6CD5;&#x7B7E;&#x540D;&#x8BC6;&#x522B;&#x65B9;&#x6CD5;&#xFF0C;&#x65B9;&#x6CD5;&#x7B7E;&#x540D;&#x5305;&#x542B;&#x65B9;&#x6CD5;&#x7684;&#x8FD4;&#x56DE;&#x503C;&#xFF0C;&#x56E0;&#x6B64;&#x540C;&#x4E00;&#x4E2A;&#x7C7B;&#x4E2D;&#x5141;&#x8BB8;&#x51FA;&#x73B0;&#x65B9;&#x6CD5;&#x540D;&#x548C;&#x65B9;&#x6CD5;&#x53C2;&#x6570;&#x90FD;&#x76F8;&#x540C;&#xFF0C;&#x8FD4;&#x56DE;&#x503C;&#x4E0D;&#x540C;&#x7684;&#x65B9;&#x6CD5;&#xFF08;&#x53EA;&#x4E0D;&#x8FC7;&#x7528;Java&#x4EE3;&#x7801;&#x505A;&#x4E0D;&#x51FA;&#x6765;&#x800C;&#x5DF2;&#xFF09;&#x3002;<br>&#x67D0;&#x4E9B;&#x5927;&#x4F6C;&#x5BF9;&#x4E0B;&#x9762;&#x8FD9;&#x4E2A;&#x4F8B;&#x5B50;&#x4E00;&#x5B9A;&#x975E;&#x5E38;&#x719F;&#x6089;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">ALLATORIxDEMO</span><span class="hljs-params">(String iIiIIIIiIi)</span> </span>{
    <span class="hljs-comment">// ...</span>
}

<span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">ALLATORIxDEMO</span><span class="hljs-params">(String iIiIIIIiIi)</span> </span>{
    <span class="hljs-comment">// ...</span>
}
</code></pre>
<p>&#x8FD9;&#x4E24;&#x4E2A;&#x65B9;&#x6CD5;&#x51FA;&#x73B0;&#x5728;&#x540C;&#x4E00;&#x4E2A;&#x7C7B;&#x4E2D;&#x5B8C;&#x5168;&#x6CA1;&#x6709;&#x95EE;&#x9898;&#xFF0C;&#x56E0;&#x4E3A;&#x4ED6;&#x4EEC;&#x7684;&#x65B9;&#x6CD5;&#x7B7E;&#x540D;&#x4E00;&#x4E2A;&#x662F;<code>ALLATORIxDEMO(Ljava/lang/String;)V</code>&#xFF0C;&#x800C;&#x53E6;&#x4E00;&#x4E2A;&#x662F;<code>ALLATORIxDEMO(Ljava/lang/String;)Ljava/lang/String;</code>&#x3002;</p>
<p>Mixin&#x4E5F;&#x80FD;&#x8BA9;&#x76EE;&#x6807;&#x7C7B;&#x5B9E;&#x73B0;&#x8FD9;&#x6837;&#x7684;&#x6548;&#x679C;&#x3002;
&#x5982;&#x679C;&#x4F60;&#x6DFB;&#x52A0;&#x7684;&#x65B9;&#x6CD5;&#x867D;&#x7136;&#x5728;&#x76EE;&#x6807;&#x7C7B;&#x4E2D;&#x6709;&#x540C;&#x540D;&#x540C;&#x53C2;&#x6570;&#x7684;&#xFF0C;&#x4F46;&#x662F;&#x5E76;&#x6CA1;&#x6709;&#x5199;&#x5728;&#x6CE8;&#x5165;&#x7C7B;&#x4E2D;&#xFF0C;&#x90A3;&#x4E48;&#x76F4;&#x63A5;&#x6309;&#x7167;&#x4E4B;&#x524D;&#x7684;&#x65B9;&#x6CD5;&#x6DFB;&#x52A0;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;<br>&#x4F46;&#x662F;&#x5982;&#x679C;&#x6CE8;&#x5165;&#x7C7B;&#x4E2D;&#x6709;&#x540C;&#x540D;&#x7684;<code>@Shadow</code>&#x6210;&#x5458;&#xFF0C;&#x60C5;&#x51B5;&#x5C31;&#x53D8;&#x5F97;&#x4E0D;&#x4E00;&#x6837;&#x4E86;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-keyword">package</span> com.example.mixins;

<span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">IMixinMinecraft</span> </span>{
    <span class="hljs-function"><span class="hljs-keyword">float</span> <span class="hljs-title">getLimitFramerate</span><span class="hljs-params">()</span></span>;
    <span class="hljs-function">String <span class="hljs-title">getTitle</span><span class="hljs-params">()</span></span>;
}
</code></pre>
<pre><code class="lang-java"><span class="hljs-keyword">package</span> com.example.mixins;

<span class="hljs-keyword">import</span> net.minecraft.client.Minecraft;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Mixin;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Shadow;

<span class="hljs-meta">@Mixin</span>(Minecraft.class)
<span class="hljs-keyword">public</span> <span class="hljs-keyword">abstract</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MixinMinecraft</span> <span class="hljs-keyword">implements</span> <span class="hljs-title">IMixinMinecraft</span> </span>{
    <span class="hljs-meta">@Shadow</span>
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">abstract</span> <span class="hljs-keyword">int</span> <span class="hljs-title">getLimitFramerate</span><span class="hljs-params">()</span></span>;
    <span class="hljs-meta">@Override</span>
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">float</span> <span class="hljs-title">getLimitFramerate</span><span class="hljs-params">()</span> </span>{ <span class="hljs-keyword">return</span> <span class="hljs-number">5.0F</span>; }
    <span class="hljs-meta">@Override</span>
    <span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">getTitle</span><span class="hljs-params">()</span> </span>{ <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;MyCustomTitle&quot;</span>; }
}
</code></pre>
<p>&#x5F88;&#x660E;&#x663E;&#xFF0C;&#x8FD9;&#x6837;&#x7F16;&#x8BD1;&#x662F;&#x4E0D;&#x53EF;&#x80FD;&#x901A;&#x8FC7;&#x7684;&#xFF0C;&#x5BF9;&#x6B64;&#xFF0C;Mixin&#x7684;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#x662F;&#xFF1A;&#x7F16;&#x8BD1;&#x65F6;&#x7528;&#x4E00;&#x4E2A;&#x5E26;&#x524D;&#x7F00;&#x7684;&#x65B9;&#x6CD5;&#x540D;&#x9A97;&#x8FC7;&#x7F16;&#x8BD1;&#x5668;&#xFF0C;&#x5728;&#x5408;&#x5E76;&#x65F6;&#x628A;&#x8FD9;&#x4E2A;&#x524D;&#x7F00;&#x53BB;&#x6389;&#xFF0C;&#x56E0;&#x6B64;Mixin&#x63D0;&#x4F9B;&#x4E86;&#x4E0B;&#x9762;&#x8FD9;&#x4E2A;&#x6CE8;&#x89E3;&#xFF1A;</p>
<ul>
<li><code>@Implements</code>&#xFF08;<a href="http://jenkins.liteloader.com/job/Mixin/javadoc/org/spongepowered/asm/mixin/Implements.html" target="_blank">&#x6587;&#x6863;</a>&#xFF09;<br>&#x8FD9;&#x4E2A;&#x6CE8;&#x89E3;&#x7528;&#x4E8E;&#x6807;&#x8BB0;&#x4E00;&#x4E2A;&#x6CE8;&#x5165;&#x7C7B;&#xFF0C;&#x7528;&#x4E8E;&#x5B58;&#x50A8;&#x7684;<code>@Interface</code>&#x6CE8;&#x89E3;&#x3002;</li>
<li><code>@Interface</code>&#xFF08;<a href="http://jenkins.liteloader.com/job/Mixin/javadoc/org/spongepowered/asm/mixin/Interface.html" target="_blank">&#x6587;&#x6863;</a>&#xFF09;  <ul>
<li><code>iface</code>: &#x6307;&#x5B9A;&#x8981;&#x5B9E;&#x73B0;&#x7684;&#x63A5;&#x53E3;</li>
<li><code>prefix</code>: &#x6307;&#x5B9A;&#x4E00;&#x4E2A;&#x7279;&#x5F81;&#x524D;&#x7F00;&#xFF0C;&#x5FC5;&#x987B;&#x4EE5;&#x7F8E;&#x5143;&#x7B26;&#x53F7; <code>$</code> &#x7ED3;&#x5C3E;  </li>
</ul>
</li>
</ul>
<p>&#x5229;&#x7528;&#x8FD9;&#x4E24;&#x4E2A;&#x6CE8;&#x89E3;&#xFF0C;&#x6211;&#x4EEC;&#x5C31;&#x80FD;&#x9690;&#x5F0F;&#x5B9E;&#x73B0;&#x63A5;&#x53E3;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-keyword">package</span> com.example.mixins;

<span class="hljs-keyword">import</span> net.minecraft.client.Minecraft;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Implements;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Interface;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Mixin;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Shadow;

<span class="hljs-meta">@Mixin</span>(Minecraft.class)
<span class="hljs-meta">@Implements</span>(<span class="hljs-meta">@Interface</span>(iface = IMixinMinecraft.class, prefix = <span class="hljs-string">&quot;example$&quot;</span>))
<span class="hljs-keyword">public</span> <span class="hljs-keyword">abstract</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MixinMinecraft</span> </span>{
    <span class="hljs-meta">@Shadow</span>
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">abstract</span> <span class="hljs-keyword">int</span> <span class="hljs-title">getLimitFramerate</span><span class="hljs-params">()</span></span>;
    <span class="hljs-keyword">public</span> <span class="hljs-keyword">float</span> example$getLimitFramerate() { <span class="hljs-keyword">return</span> <span class="hljs-number">5.0F</span>; }
    <span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">getTitle</span><span class="hljs-params">()</span> </span>{ <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;MyCustomTitle&quot;</span>; }
    <span class="hljs-comment">// &#x5E76;&#x4E0D;&#x662F;&#x6240;&#x6709;&#x7EE7;&#x627F;&#x6307;&#x5B9A;&#x63A5;&#x53E3;&#x7684;&#x65B9;&#x6CD5;&#x90FD;&#x9700;&#x8981;&#x52A0;&#x524D;&#x7F00;</span>
}
</code></pre>
<p>&#x6216;&#x8005;&#x6362;&#x4E2A;&#x601D;&#x8DEF;&#xFF0C;&#x53CD;&#x8FC7;&#x6765;&#xFF0C;&#x6211;&#x4EEC;&#x4E5F;&#x53EF;&#x4EE5;&#x4FEE;&#x6539;<code>@Shadow</code>&#x6CE8;&#x89E3;&#x6807;&#x8BB0;&#x7684;&#x65B9;&#x6CD5;&#x540D;&#xFF0C;<code>@Shadow</code>&#x6CE8;&#x89E3;&#x4E0B;&#x7684;<code>prefix</code>&#x5C5E;&#x6027;&#x5C31;&#x662F;&#x4E3A;&#x6B64;&#x800C;&#x6765;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-keyword">package</span> com.example.mixins;

<span class="hljs-keyword">import</span> net.minecraft.client.Minecraft;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Mixin;
<span class="hljs-keyword">import</span> org.spongepowered.asm.mixin.Shadow;

<span class="hljs-meta">@Mixin</span>(Minecraft.class)
<span class="hljs-keyword">public</span> <span class="hljs-keyword">abstract</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MixinMinecraft</span> <span class="hljs-keyword">implements</span> <span class="hljs-title">IMixinMinecraft</span> </span>{
    <span class="hljs-meta">@Shadow</span>(prefix = <span class="hljs-string">&quot;example$&quot;</span>)
    <span class="hljs-keyword">public</span> <span class="hljs-keyword">abstract</span> <span class="hljs-keyword">int</span> example$getLimitFramerate();
    <span class="hljs-meta">@Override</span>
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">float</span> <span class="hljs-title">getLimitFramerate</span><span class="hljs-params">()</span> </span>{ <span class="hljs-keyword">return</span> <span class="hljs-number">5.0F</span>; }
    <span class="hljs-meta">@Override</span>
    <span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">getTitle</span><span class="hljs-params">()</span> </span>{ <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;MyCustomTitle&quot;</span>; }
}
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="5.5.html" class="navigation navigation-prev " aria-label="Previous page: 定位">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="5.7.html" class="navigation navigation-next " aria-label="Next page: 扩展">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"融合","level":"1.8.6","depth":2,"next":{"title":"扩展","level":"1.8.7","depth":2,"path":"5.7.md","ref":"5.7.md","articles":[]},"previous":{"title":"定位","level":"1.8.5","depth":2,"path":"5.5.md","ref":"5.5.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"5.6.md","mtime":"2019-09-08T00:42:29.873Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-09-08T04:47:05.818Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

